package com.powernode;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan("com.powernode.*")
@EnableDiscoveryClient
public class GatewayServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayServerApplication.class, args);
    }
}


//@SpringBootApplication
//public class GatewayServerApplication implements CommandLineRunner {
//    public static void main(String[] args) {
//        SpringApplication.run(GatewayServerApplication.class, args);
//    }
//
//    @Override
//    public void run(String... args) {
//        InetUtils inetUtils = new InetUtils(new InetUtilsProperties());
//        System.out.println("Hostname: " + inetUtils.findFirstNonLoopbackHostInfo().getHostname());
//        System.out.println("IP: " + inetUtils.findFirstNonLoopbackHostInfo().getIpAddress());
//    }
//}